package com.example.lenovo.demo;

import android.app.Application;


import com.baidu.mapapi.SDKInitializer;
import com.example.lenovo.demo.model.databean.CityBean;

import org.xutils.DbManager;
import org.xutils.x;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Lenovo on 2017/1/5.
 */

public class MyApplication extends Application {
    private static DbManager.DaoConfig daoConfig;
    public static int id;
    public static DbManager.DaoConfig getDaoConfig(){
        return daoConfig;
    }
    @Override
    public void onCreate() {
        super.onCreate();
        SDKInitializer.initialize(getApplicationContext());
        x.Ext.init(this);
        x.Ext.setDebug(false);
//        daoConfig=new DbManager.DaoConfig()
//                .setDbName("mData").setDbVersion(1)
//                .setDbUpgradeListener(new DbManager.DbUpgradeListener() {
//                    @Override
//                    public void onUpgrade(DbManager db, int oldVersion, int newVersion) {
//
//                }
//        });
    }
}
